<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ page isELIgnored="false" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<html>
<head>
    <title>修改电子图书</title>
</head>
<body>

<form action="${pageContext.request.contextPath}/ebook/doupdate" method="post" <%--onSubmit="return checkfrom()"--%>>
    <table border="1" >
        <tr><td colspan ="2" align="center" style="font-size:30px;background-color: #b0e0e6 ">修改电子图书</td></tr>
        <input name="id" type="hidden" value="${ebook.id}"><br/>
        <tr>
            <td>图书名称<span> (*)</span></td>
            <td><input type="text" value="${ebook.title}" name="title" /></td>
        </tr>

        <tr>
            <td>图书摘要</td>
            <td><textarea rows="10"  name="summary" cols="50">${ebook.summary}</textarea></td>
        </tr>

        <tr>
            <td>上传人</td>
            <td><input type="text" value="${ebook.uploaduser}" name="uploaduser" /></td>
        </tr>

        <tr>
            <td>上传时间<span> (*)</span></td>
            <td><input type="text" value="<fmt:formatDate value="${ebook.createdate}" pattern="yyyy-MM-dd HH:mm"></fmt:formatDate>" name="createdate" />(yyyy-MM-dd)</td>
        </tr>

        <tr>
            <td>类别</td>
            <td><select name="categoryId">
                <option value="0">==不限==</option>
                <c:forEach var="item" items="${plist}">
                    <option <c:if test="${item.id==ebook.categoryId}">selected="selected"</c:if> value="${item.id}">${item.typeName}</option>
                </c:forEach>
            </select></td>
        </tr>



        <tr >
            <td colspan ="2" align="center">
                <input type="submit" value="提交"   />

            </td>
        </tr>

    </table>


</form>

</body>
</html>